﻿<%@ Page Language="C#" MasterPageFile="~/Front5.Master" AutoEventWireup="true" CodeBehind="ManageRecord.aspx.cs" Inherits="HRProject.Record.ManageRecord" Title="Untitled Page" %>
<%@ Import Namespace="HRProject.Code.Common" %>
<%@ Import Namespace="HRProject.Code.DTO" %>
<%@ Register TagName="Uploader" TagPrefix="uc" Src="/Component/Uploader.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="IncludePlaceHolder" runat="server">
    <script type="text/javascript" language="javascript" src="/js/jquery.uploadify.min.js"></script>
    <script type="text/javascript" language="javascript" src="/js/upload.js"></script>
    <script type="text/javascript" language="javascript" src="/js/recordtype.js"></script>
    <link rel="stylesheet" type="text/css" href="/css/uploadify.css" />
    <link type="text/css" href="/css/record.css" rel="Stylesheet"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TitleIconPlaceHolder" runat="server">
    <img src="/image/layout/icon/PolicyIcon.png" alt="" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="TitleNamePlaceHolder" runat="server">
    <%= ContentProvider.GetString("ManageRecord") %>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainPanelPlaceHolder" runat="server">
    <div id="divRecordType" style="display:none;">
        <p></p>
        <div id="divRecord" class="record">
            <div class="row">
                <div class="name-cell a1"></div>
                <div class="header a3">&nbsp;&nbsp;&nbsp;<%= ContentProvider.GetString("Content") %></div>
            </div>
            <div class="row">
                <div class="name-cell a2" style="height:200px"><%= ContentProvider.GetString("PolicyContent")%></div>
                <div class="cell" style="height:200px">
                    <textarea name="txaContent"></textarea>
                </div>
            </div>
            <div class="row">
                <div class="name-cell a2" style="height:70px"><%= ContentProvider.GetString("AttachedFiles") %></div>
                <uc:Uploader runat="server" CssClass="cell" Style="height:70px"></uc:Uploader>
            </div>
        </div>
        <input type="button" value='<%= ContentProvider.GetString("Update") %>' onclick="updateRecordType();"/>
        <div style="padding-top:15px; float:left;clear:both;"><%= ContentProvider.GetString("RecordSettings") %></div>
        <br />
        <div class="div-table">
            <div class="div-row">
                <div class="div-header c0"></div>
                <div class="div-header c1"><%= ContentProvider.GetString("RecordSettingName") %></div>
                <div class="div-header c2"><%= ContentProvider.GetString("RecordSettingInputType")%></div>
                <div class="div-header c4"><%= ContentProvider.GetString("RecordSettingInputValue")%></div>
            </div>
            <div class="div-row">
                <div class="div-cell c0"></div>
                <div class="div-cell c1">
                    <span class="add" onclick="editSetting(this, 'add');"></span>
                    <span class="remove" onclick="removeSetting(this);" style="visibility:hidden"></span>
                    <div></div>
                </div>
                <div class="div-cell c2"></div>
                <div class="div-cell c4"></div>
            </div>
        </div>
    </div>
    <div id="divClone" style="display:none">
        <select onchange="inputTypeChange(this);">
        <% foreach (InputTypeObject it in InputTypes)
           { %>
            <option value="<%= it.Id %>"><%= it.Name %></option>
        <% } %>
        </select>
    </div>
</asp:Content>
